package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 冻结金额记录对象 sys_user_freeze_amount
 *
 * @author Ericcc
 * @date 2021-04-05
 */
public class SysUserFreezeAmount extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 冻结金额id */
    private Long freezeId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 要冻结的金额 */
    @Excel(name = "要冻结的金额")
    private BigDecimal freezeAmount;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderCode;

    /** 冻结状态（0.冻结，1解冻） */
    @Excel(name = "冻结状态", readConverterExp = "0=.冻结，1解冻")
    private Integer status;

    public void setFreezeId(Long freezeId)
    {
        this.freezeId = freezeId;
    }

    public Long getFreezeId()
    {
        return freezeId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setFreezeAmount(BigDecimal freezeAmount)
    {
        this.freezeAmount = freezeAmount;
    }

    public BigDecimal getFreezeAmount()
    {
        return freezeAmount;
    }
    public void setOrderCode(String orderCode)
    {
        this.orderCode = orderCode;
    }

    public String getOrderCode()
    {
        return orderCode;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("freezeId", getFreezeId())
                .append("userId", getUserId())
                .append("freezeAmount", getFreezeAmount())
                .append("remark", getRemark())
                .append("orderCode", getOrderCode())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}